   
<?php
defined( '_JEXEC') or die( 'Restricted access');
jimport( 'joomla.application.component.view');

class SophiaViewHome extends JView
{
	function display($tpl = null)
	{
		
		
		// Check whether category access level allows access.
		
		JHTML::stylesheet( 'nom.css', 'administrator/components/com_sophia/assets/' );
		jimport('joomla.html.pane');

		$model =& $this->getModel();

		$alumnos		= & $this->get( 'Data');
	
		$lists = & $this->get('List');

		$this->assignRef('alumnos',		$alumnos);
		$this->assignRef('alumno',		$alumno);
	
		$this->assignRef('lists', $lists);
		$user	= JFactory::getUser();

		if ($user->get('guest')) {
			//$this->setRedirect('index.php');
			return JError::raiseError(403, JText::_('Usuario no registrado'));
		}
		// Check for errors.
		if (count($errors = $this->get('Errors'))) {
			JError::raiseError(500, implode('<br />', $errors));
			return false;
		}
		
		
		parent::display($tpl);
		parent::display($tpl);
	}

}
	
?>